# -*- coding: utf-8 -*-

"""
	A library of methods for normalization
"""

import numpy as np


def zero_one(src_array):
	"""
		0-1 normalization

		Args: the array to be normalized

		Returns: the normalized array
	"""
	return (src_array - np.min(src_array)) / \
		   (np.max(src_array) - np.min(src_array))


if __name__ == '__main__':
	print(zero_one([[8, 9], [0, 7]]))
